﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Project.DTO
{
    public class WorkHistoryPost
    {
        [Display(Name = "用户Id")]
        [Required(ErrorMessage ="必须指定{0}")]
        public Guid UserId { get; set; }

        [Display(Name ="起始时间")]
        public DateTime BeginDate { get; set; }

        [Display(Name = "截至时间")]
        public DateTime? EndDate { get; set; }

        [Display(Name = "内容")]
        [MaxLength(100, ErrorMessage ="最多100字")]
        public string Content { get; set; }
    }
}
